import Vue from 'vue';
import Vuex from 'vuex';
import getters from './getters';
import app from './modules/app';
import settings from './modules/settings';
import user from './modules/user';
import StudentMng from './modules/StudentMng/StudentMngStore';
import AcademyMng from './modules/AcademyMng/AcademyStore';
import CompanyMng from './modules/CompanyMng/CompanyMng';
import PostPostingMng from './modules/CompanyMng/PostPosting';
import JobCategoryMng from './modules/JobCategoryMng/JobCategoryMng';
import DictMng from './modules/SystemSettingsMng/DictMngStore';
import ResumeMng from './modules/ResumeMng/ResumeMng';
import MenuMng from './modules/SystemSettingsMng/MenuMngStore';
import permission from './modules/permission';
import ResumeDeliveryStore from './modules/ResumeMng/ResumeDeliveryStore';
import RoleMng from './modules/RoleMng/RoleMngStore';

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user,
    StudentMng,
    AcademyMng,
    CompanyMng,
    PostPostingMng,
    JobCategoryMng,
    DictMng,
    ResumeMng,
    MenuMng,
    permission,
    ResumeDeliveryStore,
    RoleMng,
  },
  getters,
});

export default store;
